package demo.wall.service;

import demo.wall.mapper.MessageInfoMapper;
import demo.wall.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageInfoService {

    @Autowired
    private MessageInfoMapper messageInfoMapper;

    public Integer addMessage(MessageInfo messageInfo){
        return messageInfoMapper.addMessage(messageInfo);
    }

    public List<MessageInfo> getAll(){
        return messageInfoMapper.getAll();
    }
}
